<div class="row">
<div class="col-md-12">
		<div class="table-header">
			Categories
		</div>
		<?php if($this->session->flashdata("message_success")){
			echo $this->session->flashdata("message_success");
		} ?>
	<div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
		<div class="row">
			<div class="col-xs-6">
				<div class="dataTables_length" id="dynamic-table_length">
					<label>Display 
						<select name="dynamic-table_length" aria-controls="dynamic-table" class="form-control input-sm">
							<option value="10">10</option>
							<option value="25">25</option>
							<option value="50">50</option>
							<option value="100">100</option>
						</select> records</label>
					</div>
				</div>
				<div class="col-xs-6">
					<div id="dynamic-table_filter" class="dataTables_filter">
						<label>
							Search:
							<input type="search" class="form-control input-sm" placeholder="" aria-controls="dynamic-table"></label>
						</div>
					</div>
				</div>
				<table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" role="grid" aria-describedby="dynamic-table_info">
					<thead>
						<tr role="row">
							<th class="center sorting_disabled" rowspan="1" colspan="1" aria-label="">
								<label class="pos-rel">
									<input type="checkbox" class="ace">
									<span class="lbl"></span>
								</label>
							</th>
							<th class="sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">Company Name</th>
							<th class="sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">Job Title</th>	
							<th class="sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">Job Time</th>	
							<th class="sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">Province</th>	
							<th class="sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">Post Date</th>	
							<th class="sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">Close Date</th>					
							<th class="sorting_disabled" rowspan="1" colspan="1" aria-label="">Action</th>
						</tr>
				</thead>
				<tbody>	
					<?php 
				    foreach ($job_data->result() as $key => $value) {
					?>
						<tr role="row" class="even" >

							<td class="center">
								<label class="pos-rel">
									<input type="checkbox" class="ace">
									<span class="lbl"></span>
								</label>
							</td>
							<td><?php echo  $value->com_name; ?></td>
							<td><?php echo  $value->job_post_title; ?></td>
							<td><?php echo  $value->job_time_name; ?></td>
							<td>

							<?php
								$locatArr = getLocationName($value->job_post_id)->result();
								 foreach ($locatArr as $rowLocation) {
								 	echo $rowLocation->locationName.', ';
								 }
							 ?></td>
							<td><?php echo  $value->post_date; ?></td>
							<td><?php echo  $value->close_date; ?></td>
							<td>
								<div class="hidden-sm hidden-xs action-buttons">
								
								 <?php echo anchor("admin_khmerhr/editPostJob/jobId_".$value->job_post_id,'<i class="ace-icon fa fa-pencil bigger-130 green"></i>'); ?>					
						         <?php echo anchor("admin_khmerhr/deletejob/".$value->job_post_id,'<i class="ace-icon fa fa-trash-o bigger-130 red"></i>'); ?>
								</div>
							
							</td>
						</tr>
						<?php } ?>
				
				</tbody>						
			</table>
			<div class="row">
				<div class="col-xs-6">
				<!-- for total page show -->
				</div>
				<div class="col-xs-6">
			 	<div class="dataTables_paginate paging_simple_numbers" >
						<!-- <ul class="pagination">
							<li class="paginate_button previous disabled" aria-controls="dynamic-table" tabindex="0" id="dynamic-table_previous">
								<a href="#">Previous</a>
							</li>
							<li class="paginate_button active" aria-controls="dynamic-table" tabindex="0">
								<a href="#">1</a>
							</li>
							<li class="paginate_button " aria-controls="dynamic-table" tabindex="0">
								<a href="#">2</a>
							</li>
							<li class="paginate_button " aria-controls="dynamic-table" tabindex="0">
								<a href="">3</a>
							</li>
							<li class="paginate_button next" aria-controls="dynamic-table" tabindex="0" id="dynamic-table_next">
								<a href="#">Next</a>
							</li>
						</ul> -->
						<?php echo $links; ?>
					</div>
					
				</div>
			</div>
		</div>
			
	</div>

</div>